import request from '@/utils/axios'
import {
    appUrl
} from '@/utils/env'

export function getMusicList(data) {
    return request({
        url: appUrl + '/music/search',
        method: 'post',
        data
    })
}
export function getList(data) {
    return request({
        url: appUrl + '/music/list',
        method: 'post',
        data
    })
}
export function getSingerMusicList(data) {
    return request({
        url: appUrl + '/music/listBySinger',
        method: 'post',
        data
    })
}
export function addMusic(data) {
    return request({
        url: appUrl + '/music/create',
        method: 'post',
        data
    })
}

export function editMusic(data) {
    return request({
        url: appUrl + '/music/update',
        method: 'post',
        data
    })
}

export function getMusicInfo(data) {
    return request({
        url: appUrl + '/music/info',
        method: 'post',
        data
    })
}

export function deleteMusic(data) {
    return request({
        url: appUrl + '/music/delete',
        method: 'post',
        data
    })
}

export function dispatchMusic(data) {
    return request({
        url: appUrl + '/music/dispatch',
        method: 'post',
        data
    })
}
